package com.cnunicom.modules.tra.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.domain.AfterDomainEventPublication;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 餐厅菜品表
 *
 * @author dzygod
 * @email dingziyuan0@gmail.com
 * @date 2020-03-04 09:39:59
 */
@Data
@TableName("tra_res_discount")
public class ResDiscountEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	@ApiModelProperty(value = "主键")
	private Integer id;

	@ApiModelProperty(value = "类型")
	@NotNull(message = "类型不能为空")
	private Integer type;

	@ApiModelProperty(value = "父级id")
	@NotNull(message = "父级不能为空")
	private Integer parentId;

	@ApiModelProperty(value = "餐厅名称")
	private String resName;

	@ApiModelProperty(value = "就餐类型名称")
	private String eatName;

	@ApiModelProperty(value = "折扣比例")
	private Integer discount;

	@ApiModelProperty(value = "创建时间")
	private String createTime;

	@ApiModelProperty(value = "逻辑删除")
	@TableLogic
	private Integer isDel;

}
